import time
import unittest
from BeautifulReport import BeautifulReport
from config.config import CASES_PATH, REPORTS_PATH



discover = unittest.defaultTestLoader.discover(CASES_PATH, pattern="test*.py")
BeautifulReport(discover).report(
    description=u'APP自动化测试报告',
    report_dir=REPORTS_PATH,
    filename=f"HD65-APP自动化{time.strftime("%Y-%m-%d %H%M%S")}"
)